#include "UdpClient.hpp"
#include <memory>
int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        std::cerr << "usage fail " << "Usage:" << argv[0] << "serverIp serverPort" << std::endl;
        return -1;
    }
    //使用ip与port构建UdpClient对象的指针
    std::shared_ptr<udpClient> c_ptr = std::make_shared<udpClient>(argv[1],argv[2]);
    c_ptr->Start();
    return 0;
}